import request from "@/utlis/request.js"

export function getBannerData(){
    return request({
        url:"/admin/banner/list",
        method:"get"
    })
}

export function getBannerData2(){
    return request({
        url:"http://localhost:3000/banners"
    })
}

export function addBanner(params){
    return request({
        url:"/admin/banner/add",
        method:"post",
        data:params
    })
}
export function delBanner(params){
    return request({
        url:"/admin/banner/delete",
        method:"get",
        data:{
            bannerid:params
        }
    })
}

export function delBanner2(params){
    return request({
        url:"http://localhost:3000/banners",
        method:"delete",
        data:{
            bannerid:params
        }
    })
}